Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

RichFaces Interview Questions and Answers

Question: What is rich:dataGrid in RichFaces?
Answer: The rich:dataGrid component accepts the same data sources as other iteration components and renders them in a grid format, the same way as the h:PanelGrid component does for in-line data. To define the grid's properties and styles, use the same definitions as for the h:panelGrid component.

<rich:dataGrid value="#{bean.allEmployees}" var="emp" columns="3" elements="9" width="600px" border="0">
      <rich:panel bodyClass="pbody">
       <f:facet name="header">
               <h:outputText value="#{emp.name} #{emp.code}"></h:outputText>
          </f:facet>
          <h:panelGrid columns="2">
               <h:outputText value="Salary:" styleClass="label"></h:outputText>
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook